Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/share/selinux/devel/include/contrib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/selinux/devel/include/contrib/logwatch.if
## <summary>System log analyzer and reporter.</summary>

########################################
## <summary>
##	Read logwatch temporary files.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`logwatch_read_tmp_files',`
	gen_require(`
		type logwatch_tmp_t;
	')

	files_search_tmp($1)
	allow $1 logwatch_tmp_t:file read_file_perms;
')

########################################
## <summary>
##	Search logwatch cache directories.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`logwatch_search_cache_dir',`
	gen_require(`
		type logwatch_cache_t;
	')

	files_search_var($1)
	allow $1 logwatch_cache_t:dir search_dir_perms;
')

#######################################
## <summary>
##  Dontaudit read and write an leaked file descriptors
## </summary>
## <param name="domain">
##  <summary>
##	Domain to not audit.
##  </summary>
## </param>
#
interface(`logwatch_dontaudit_leaks',`
    gen_require(`
        type logwatch_t;
    ')

	dontaudit $1 logwatch_t:fifo_file { read write };
')

########################################
## <summary>
##	Create, read, write, and delete
##	svirt cache files.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`logwatch_manage_cache',`
	gen_require(`
		type logwatch_cache_t;
	')

	files_search_var($1)
	manage_files_pattern($1, logwatch_cache_t, logwatch_cache_t)
	manage_dirs_pattern($1, logwatch_cache_t, logwatch_cache_t)
')

haha - 2025